ioemu: error checkin when setting up the Cirrus Logic video device.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 28 Aug 2007 15:08:38 +0000 (16:08 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Tue, 28 Aug 2007 15:08:38 +0000 (16:08 +0100)
commitde01426fdf7361ea196626901998408b76a33735
tree8627aeb5580d5150bf4cca4766635a40a9cf3867
parent81217a7a8d35fe341be4d0cbda4b7a44d4f1df5a
ioemu: error checkin when setting up the Cirrus Logic video device.

set_mm_mapping() may fail because of xc_domain_populate_physmap().  In
this case, we should not blindly go on; the xc_map_foreign_batch()
that follows will cause a page fault and, at best, get mapped in a
zeroed page from the dom0 (which is not what we want).  While I'm in
here, fix a memory leak on an error path.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
tools/ioemu/hw/cirrus_vga.c